
     
     
     
     
     
    









<?php if(!IS_AJAX){?>

<include file="Public:header" />
<div class="row">
  <div class="col-sm-7 col-md-8 col-lg-9">
    <section class="panel">
      <div class="panel-body">
      
      
      
      
       

          <ul class="imgList ajaxdatalist" id="ajaxdatalist">
            <?php }?>
            
            
            
            <?php if(IS_AJAX){?>
            <!-- 数据主体 -->
    
            


 <volist name="list" id="vo">
     	<li><a href="{:U('index',array('pid' => $vo['id']))}" title="{$vo.title}"><span><img src="__PUBLIC__/Admin/images/fileBox.jpg" /></span></a>
        
        
        <div class="option" style="bottom:-20px;">
        
        <p style="text-align:center;">{$vo.title}</p>
        </div>
        
        </li>
     </volist>
     
     
     <volist name="imgList" id="vo">
     	<li><a href="{:U('index',array('pid' => $vo['id']))}" title="{$vo.title}"><span><img src="{:getThumbPath($vo['img_url'], 1)}" /></span></a>
        
        
        <div class="option" style="bottom:-20px;">
        
        <p style="text-align:center;">{$vo.title}</p>
        </div>
        
        </li>
     </volist>



            <?php }?>
            <!-- 数据主体结束 -->
            
            <?php if(!IS_AJAX){?>
          </ul>
        <div id="ajaxdatalistpages"></div><div id="ajaxdatalistpages1" style="text-align:center;"><?php echo $imgPages;?></div>
      </div>
    </section>
  </div>
  <div class="col-sm-5 col-md-4 col-lg-3"><gt name="pid" value="0"><div class="states-info">
      <div class="panel green-bg">
        <div class="panel-body">
          <div class="row">
            <div class="col-xs-3"> <i class="fa fa-mail-forward"></i> </div>
            <div class="col-xs-7">
               <h4>返回上级</h4>

              <span class="state-title"> <a class="text-success" href="<?php echo U('index',array('pid' => $returnid));?>">点击这里返回上级</a> </span> </div>
            <div class="col-xs-2"> <span class="fa fa-angle-right"></span> </div>
          </div>
        </div>
      </div>
    </div></gt>
    <div class="states-info">
      <div class="panel green-bg">
        <div class="panel-body">
          <div class="row">
            <div class="col-xs-3"> <i class="fa fa-folder-o"></i> </div>
            <div class="col-xs-7">
              <h4>增加分类</h4>
              <span class="state-title"> <a class="text-success" href="##" onClick="_openWindow('<?php echo U('add',array('pid' => $pid));?>', 300, '增加分类', '保存', function(){ $('#ajaxdatalistform').submit();}, '');">点击这里增加分类</a> </span> </div>
            <div class="col-xs-2"> <span class="fa fa-angle-right"></span> </div>
          </div>
        </div>
      </div>
    </div>
    
    
    <div class="states-info">
      <div class="panel green-bg">
        <div class="panel-body">
          <div class="row">
            <div class="col-xs-3"> <i class="fa fa-cloud-upload"></i> </div>
            <div class="col-xs-7">
              <h4>上传图片</h4>
              <span class="state-title"> <a class="text-success" href="##" onClick="openuploadwin('{:U('index')}');">点击这里上传图片</a> </span> </div>
            <div class="col-xs-2"> <span class="fa fa-angle-right"></span> </div>
          </div>
        </div>
      </div>
    </div>
    <div class="panel">
      <header class="panel-heading"> 搜索 </header>
      <div class="panel-body">
        <form id="ajaxdatalistform">
          <div class="input-group m-bot15">
            <input type="text" name="keywords" class="form-control">
            <span class="input-group-btn">
            <button type="button" onClick="$('#ajaxdatalistform').trigger('submit');" class="btn btn-default"><i class="fa fa-search"></i></button>
            </span> </div>
        </form>
       
      </div>
    </div>
  </div>
</div>
<include file="Public:footer" />

<script>
	
	
	
	function openuploadwin(url){
		art.dialog.open('{:U('Img/add',array('pid' => $pid))}', {width: 600, height: 400,lock:true,title:'上传图片', ok:function(){
			
			window.location.reload();
		}});
	}
</script>
<style>
	.cateListControl{padding:10px; padding-bottom:20px;}
	.cateListControl a.on{color:#f60; font-weight:bold;}
	.cateListControl a{font-size:16px; padding:5px 10px;}
	.imgList{padding:0; margin:0;}
	.imgList li{list-style-type:none; display:inline-block; position:relative; margin:5px; padding-bottom:15px; margin-bottom:20px;}
	.imgList li div.option{display:inline; bottom:0; left:0; position:absolute; width:100%;}
	.imgList li a{display:inline-block;}
	.imgList li img{width:100px; border:1px solid #ccc;}
</style></body></html><?php }?>







    
    
    
    
    
    
   




